// FrogRenameAutoNumDialog.h : Declaration of the CFrogRenameAutoNumDialog

#pragma once

#include "resource.h"       // main symbols
#include <atlhost.h>
#include "FrogOrderFilesDialog.h"

// CFrogRenameAutoNumDialog

class CFrogRenameAutoNumDialog: public CFrogOrderFilesDialog<CFrogRenameAutoNumDialog>,
	public CWinDataExchange<CFrogRenameAutoNumDialog>
{
public:
	CFrogRenameAutoNumDialog(HICON hIcon);

	enum { IDD = IDD_DIALOG_RENAME_NUMBER };

	BEGIN_MSG_MAP(CFrogRenameAutoNumDialog)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_HANDLER(IDOK, BN_CLICKED, OnClickedOK)
		// FrogBaseDialog Inherited
		CHAIN_MSG_MAP(CFrogOrderFilesDialog)
	END_MSG_MAP()

	BEGIN_DDX_MAP(CFrogRenameAutoNumDialog)
		DDX_TEXT(IDC_EDIT_START_NUM, m_StartNumStr)	
	END_DDX_MAP()
	// Handler prototypes:
	//  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	//  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	//  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);

	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClickedOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	virtual void ExecuteCommand();

	int m_StartNum;
private:

	CString m_StartNumStr;
};


